#ifndef MEDIALOCATOR_H
#define MEDIALOCATOR_H

#include <QDir>
#include <QMutex>
#include <QThread>
#include <QWaitCondition>
#include "mcplugins.h"

class MediaLocator : public QThread
{
    Q_OBJECT
public:
    MediaLocator();
protected:
    void run();
private slots:
    void unlock();
private:
    QList<MediaFolder *> * listenedFolders;
    QList<MediaFile *> * files;
    QStringList * extensions;
    QWaitCondition condition;
    QMutex * mutex;
};

#endif // MEDIALOCATOR_H
